package com.ruoyi.common.utils.lc;

import java.util.HashSet;
import java.util.Set;

public class FieldUtil {
	
	public static final String F_ID = "ID";
	public static final String F_CODE = "CODE";
	public static final String F_TITLE = "TITLE";
	public static final String F_CREATE_BY = "CREATE_BY";
	public static final String F_CREATE_TIME = "CREATE_TIME";
	public static final String F_UPDATE_BY = "UPDATE_BY";
	public static final String F_UPDATE_TIME = "UPDATE_TIME";
	public static final String F_REMARK = "REMARK";
	public static final String F_USER_ID = "USER_ID";
	public static final String F_DEPT_ID = "DEPT_ID";
	public static final String F_WORKFLOW_STATUS = "WORKFLOW_STATUS";
	public static final String F_SUBMIT_USER_ID = "SUBMIT_USER_ID";
	public static final String F_SUBMIT_DEPT_ID = "SUBMIT_DEPT_ID";
	public static final String F_SUBMIT_TIME = "SUBMIT_TIME";
	public static final String F_LAST_AUDIT_TIME = "LAST_AUDIT_TIME";
	public static final String F_LAST_AUDIT_USER_ID = "LAST_AUDIT_USER_ID";
	
	
	
	private final static Set<String> SYSTEM_FIELD_NAMES = new HashSet<String>();
	
	static {
		SYSTEM_FIELD_NAMES.add(F_ID);
		SYSTEM_FIELD_NAMES.add(F_CODE);
		SYSTEM_FIELD_NAMES.add(F_TITLE);
		SYSTEM_FIELD_NAMES.add(F_CREATE_BY);
		SYSTEM_FIELD_NAMES.add(F_CREATE_TIME);
		SYSTEM_FIELD_NAMES.add(F_UPDATE_BY);
		SYSTEM_FIELD_NAMES.add(F_UPDATE_TIME);
		SYSTEM_FIELD_NAMES.add(F_REMARK);
		SYSTEM_FIELD_NAMES.add(F_USER_ID);
		SYSTEM_FIELD_NAMES.add(F_DEPT_ID);
		SYSTEM_FIELD_NAMES.add(F_WORKFLOW_STATUS);
		SYSTEM_FIELD_NAMES.add(F_SUBMIT_USER_ID);
		SYSTEM_FIELD_NAMES.add(F_SUBMIT_DEPT_ID);
		SYSTEM_FIELD_NAMES.add(F_SUBMIT_TIME);
		SYSTEM_FIELD_NAMES.add(F_LAST_AUDIT_TIME);
		SYSTEM_FIELD_NAMES.add(F_LAST_AUDIT_USER_ID);
		
	}
	
	
	public static boolean isSystemField(String fieldName) {
		return SYSTEM_FIELD_NAMES.contains(fieldName.toUpperCase());
	}
	
	
	
}
